# Author: Lovy
# File : handle_yaml
# Time : 2023-03-17 17:18
import yaml


def get_yaml_data(yaml_file):
    with open(yaml_file, encoding="utf-8")as f:
        return yaml.safe_load(f.read())


if __name__ == '__main__':
    from pprint import pprint
    from utils.handle_path import PollyPath
    pprint(get_yaml_data(PollyPath.testData_path / 'test_login_fail_data.yaml'))
